{use class="common\library\Def"}
{include file="user.header.html"}
<div id="main" class="clearfix">
	<div class="particular">
		<div class="particular_wrap">
			<h2>{$lang.order_detail}</h2>
			<div class="mb20 mt10 ml10 clearfix">
				<div class="state float-left">{$lang.order_status}&nbsp;:&nbsp;<strong>{Def::getOrderStatus($order.status)}</strong></div>
				<div class="num float-left">{$lang.order_sn}&nbsp;:&nbsp;{$order.order_sn}</div>
				<div class="time float-left">{$lang.add_time}&nbsp;:&nbsp;{$order.order_add_time|date_format:"%Y.%m.%d %H:%M:%S"}</div>
			</div>
			<h3>{$lang.order_info}</h3>
			<dl class="info">
				<dt>{$lang.buyer_info}</dt>
				<dd>{$lang.buyer_name}&nbsp;:&nbsp;{$order.buyer_info.username|escape}</dd>
				<dd>{$lang.phone_tel}&nbsp;:&nbsp;{$order.buyer_info.phone_tel|default:'-'}</dd>
				<dd>{$lang.phone_mob}&nbsp;:&nbsp;{$order.buyer_info.phone_mob|default:'-'}</dd>
				<dd>{$lang.email}&nbsp;:&nbsp;{$order.buyer_info.email|default:'-'}</dd>
			</dl>
			<div class="ware_line">
				<div class="ware"> 
					<!--{foreach from=$order.orderGoods item=goods}-->
					<div class="ware_list">
						<div class="ware_pic"><img src="{$goods.goods_image|url_format}" width="50" height="50"  /></div>
						<div class="ware_text">
							<div class="ware_text1"> <a href="{url route='goods/index' id=$goods.goods_id}">{$goods.goods_name|escape}</a> <br />
								<span>{$goods.specification|escape}</span> </div>
							<div class="ware_text2"> <span>{$lang.quantity}&nbsp;:&nbsp;<strong>{$goods.quantity}</strong></span> <span>{$lang.goods_price}&nbsp;:&nbsp;<strong>{$goods.price}</strong></span> 
								<!--{if $goods.sku}--><span>{$lang.sku}&nbsp;:&nbsp;<strong>{$goods.sku}</strong></span><!--{/if}--> 
							</div>
						</div>
					</div>
					<!--{/foreach}-->
                    
					<div class="transportation">{$lang.shipping_fee}&nbsp;:&nbsp;<span>{$order.ordexExtm.shipping_fee|price_format}<strong>({$order.orderExtm.shipping_name|escape})</strong></span>{$lang.preference}&nbsp;:&nbsp;<span>{$order.discount|price_format}</span>{$lang.order_amount}&nbsp;:&nbsp;<b>{$order.order_amount|price_format}</b> </div>
					<ul class="order_detail_list">
						<!--{if $order.payment_code}-->
						<li>{$lang.payment_name}&nbsp;:&nbsp;{$order.payment_name|escape}</li>
						<!--{/if}--> 
						<!--{if $order.pay_message}-->
						<li>{$lang.pay_message}&nbsp;:&nbsp;{$order.pay_message|escape}</li>
						<!--{/if}-->
						<li>{$lang.add_time}&nbsp;:&nbsp;{$order.order_add_time|date_format:"%Y.%m.%d %H:%M:%S"}</li>
						<!--{if $order.pay_time}-->
						<li>{$lang.pay_time}&nbsp;:&nbsp;{$order.pay_time|date_format:"%Y.%m.%d %H:%M:%S"}</li>
						<!--{/if}--> 
						<!--{if $order.ship_time}-->
						<li>{$lang.ship_time}&nbsp;:&nbsp;{$order.ship_time|date_format:"%Y.%m.%d %H:%M:%S"}</li>
						<!--{/if}--> 
						<!--{if $order.finished_time}-->
						<li>{$lang.finished_time}&nbsp;:&nbsp;{$order.finished_time|date_format:"%Y.%m.%d %H:%M:%S"}</li>
						<!--{/if}-->
					</ul>
				</div>
			</div>
			<h3>{$lang.consignee_info}</h3>
			<div class="goods"> {$lang.consignee_address}&nbsp;:&nbsp;{$order.orderExtm.consignee|escape}<!--{if $order.orderExtm.phone_mob}-->, &nbsp;{$order.orderExtm.phone_mob}<!--{/if}--><!--{if $order.orderExtm.phone_tel}-->,&nbsp;{$order.orderExtm.phone_tel}<!--{/if}--> 
				,&nbsp;{$order.orderExtm.region_name|escape}&nbsp;{$order.orderExtm.address|escape} 
				<!--{if $order.orderExtm.zipcode}-->,&nbsp;{$order.orderExtm.zipcode|escape}<!--{/if}--><br />
				{$lang.shipping_name}&nbsp;:&nbsp;{$order.orderExtm.shipping_name|escape}<br/>
				<!--{if $order.express_no}--> 
				{$lang.express_no}&nbsp;:&nbsp;{$order.express_no|escape}
				<br />
				<!--{/if}--> 
				<!--{if $order.postscript}--> 
				{$lang.postscript}&nbsp;:&nbsp;{$order.postscript|escape}<br />
				<!--{/if}--> 
			</div>
			<!--{if $order.orderLog}-->
			<h3>{$lang.operate_log}</h3>
			<ul class="log_list">
				<!--{foreach from=$order.orderLog item=log}-->
				<li> <span class="operator"><!--{if $log.operator eq '0'}--><span style="color:green;">[{$lang.system}]</span><!--{else}-->{$log.operator|escape}<!--{/if}--></span> {$lang.at} <span class="log_time">{$log.log_time|date_format:"%Y.%m.%d %H:%M:%S"}</span> {$lang.change_status} <span class="order_status">{$log.order_status}</span> {$lang.change_to} <span class="order_status">{$log.changed_status}</span> 
					<!--{if $log.remark}--> 
					{$lang.reason}:<span class="reason">{$log.remark|escape}</span> 
					<!--{/if}--> 
				</li>
				<!--{/foreach}-->
			</ul>
			<!--{/if}--> 
		</div>
	</div>
</div>
{include file="user.footer.html"}